﻿@model MvcApplication2.Controllers.FindTesterViewModel
@{
    ViewBag.Title = "FindTesters";
    
}
<h2>
    @Model.ExerciseTitle
</h2>
<dl class="dl-horizontal">
    <dt>Language</dt>
    <dd>@Model.LanguagesFiltered</dd>
    <dt>Target Device</dt>
    <dd>@Model.TargetDevice</dd>
    <dt>Screencapture</dt>
    <dd>@Model.CanScreenCapture</dd>
    <dt>Webcam</dt>
    <dd>@Model.CanWebcamRecording</dd>
</dl>
<table class="table table-striped">
    <tr>
        <th>
            Tester
        </th>
        <th>
            Exp.
        </th>
        <th>
            Proposal Status
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model.Testers)
    {
        <tr>
            <td>
                @Html.ActionLink(item.DisplayName, "ViewProfile", "User", new { id = item.UserProfileId }, null)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.TesterExperiencePoint)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ProposalSendedMessage)
            </td>
            <td>
                @Html.ActionLink("Send Proposal", "SendProposal", new { exerciseId = ViewBag.ExerciseId, testerId = item.UserProfileId }, new { @class = "btn btn-primary btn-mini" })
            </td>
        </tr>
    }
</table>
